import request from '@/utils/request'

// 新增阿里云配置
export const createAliConfig = (data) => request({
  url: '/admin/ali/config',
  method: 'post',
  data
})

// 删除阿里云配置
export const deleteAliConfig = (data) => request({
  url: '/admin/ali/config',
  method: 'delete',
  data
})

// 修改阿里云配置
export const updateAliConfig = (data) => request({
  url: '/admin/ali/config',
  method: 'put',
  data
})

// 获取阿里云配置
export const getAliConfig = (id) => request({
  url: `/admin/ali/config/${id}`,
  method: 'get'
})

// 分页查询阿里云配置
export const pageQuery = (data) => request({
  url: '/admin/ali/config/all',
  method: 'post',
  data
})
